import java.util.Scanner;

public class Max {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.println("输入三个整数：");
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        int set = max3(a, b, c);
        System.out.println("max:");
        System.out.println(set);

    }

    public static int max2(int a, int b) {
        if (a > b) {
            return a;
        } else {
            return b;
        }
    }

    public static int max3(int a, int b, int c) {
        int set = max2(a, b);
        if (set > c) {
            return set;
        } else {
            return c;
        }
    }
}
